package com.kakarote.examine.controller;

import com.kakarote.core.common.Result;
import com.kakarote.examine.entity.BO.SuperExamineFollowBO;
import com.kakarote.examine.service.ISuperExamineFollowService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhangzhiwei
 * @date 2020/12/24
 */
@RestController
@RequestMapping("/examineFollow")
@Api(tags = "超级审批关注接口")
public class SuperExamineFollowController {

    @Autowired
    private ISuperExamineFollowService superExamineFollowService;

    @ApiOperation("关注-切换关注状态")
    @PostMapping(value = "/change/follow")
    public Result<Boolean> changeFollow(@RequestBody SuperExamineFollowBO superExamineFollowBO) {
        Boolean bool = superExamineFollowService.changeFollow(superExamineFollowBO);
        return Result.ok(bool);
    }

    ;

}
